@inherits BaseComponent

@namespace FluentCMS.Web.UI.Components

@if (Visible)
{
    @if (!string.IsNullOrEmpty(Href))
    {
        <a @attributes="AdditionalAttributes" class="@this.GetClasses()" disabled="@Disabled" href="@Href">
            @ChildContent
        </a>
    }
    else
    {
        <button @attributes="AdditionalAttributes" class="@this.GetClasses()" disabled="@Disabled" type="@Type.ToString()">
            @ChildContent
        </button>
    }
}